//
//  UIViewController+TSBug.m
//  TSDemo_List
//
//  Created by qian on 2021/3/19.
//

#import "UIViewController+TSBug.h"
#import <Masonry/Masonry.h>
#import <CQDemoKit/CJUIKitToastUtil.h>

@implementation UIViewController (TSBug)

- (UILabel *)knowledgeLabel {
    UILabel *knowledgeLabel = [[UILabel alloc] init];
    knowledgeLabel.numberOfLines = 0;
    knowledgeLabel.backgroundColor = [UIColor redColor];
    knowledgeLabel.textAlignment = NSTextAlignmentLeft;
    knowledgeLabel.font = [UIFont fontWithName:@"PingFangSC-Semibold" size:18];
    knowledgeLabel.textColor = [UIColor whiteColor];
    
    return knowledgeLabel;
}

#pragma mark - Private Method
- (void)__showToast:(NSString *)message centerOffset:(CGPoint)centerOffset {
    NSLog(@"%@", message);
    
    [CJUIKitToastUtil showToast:message inView:nil centerOffset:centerOffset];
}

@end
